package com.tich.order.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("orders")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 节目id
     */
    private Long programId;

    /**
     * 门票id
     */
    private Long ticketId;

    /**
     * 节目海报
     */
    private String programPoster;

    /**
     * 节目标题
     */
    private String programTitle;

    /**
     * 节目演出地点
     */
    private String programPlace;

    /**
     * 节目演出时间
     */
    private LocalDateTime programShowTime;

    /**
     * 购票数量
     */
    private Integer count;

    /**
     * 实付金额
     */
    private Integer money;

    /**
     * 订单状态，1:未支付 2:已取消 3:已支付 4:已退款
     */
    private Integer orderStatus;

    /**
     * 退款时间
     */
    private LocalDateTime refundTime;

    /**
     * 订单取消时间
     */
    private LocalDateTime cancelOrderTime;

    /**
     * 订单支付时间
     */
    private LocalDateTime payOrderTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
